<?php echo var_dump($union_id)?>
<?php echo $html->script(array('jquery')); ?>
<script type="text/javascript">
<!--
	$(function(){
			$("#UnionMemberDetailLastDateOfUnionFee").datepicker({dateFormat: 'yy/mm/dd'});
		});
</script>
<div class="">
<?php echo $form->create('UnionMemberDetail', array('class'=>'validate-form form bt-space15','controller'=>'union_member_details','action' => 'multiEditFee')) ?>
	<table class="style1">
		<thead>
			<tr>
				<th>Mã số</th>
				<th>Họ tên</th>
				<th>Chi đoàn hiện tại</th>
			</tr>
		</thead>
	
		<tbody>
			<?php
				
			
				foreach ($members as $member) {
			?>
			<tr>
				<td><?php echo $member['UnionMember']['id'] ?></td>
				<td><?php echo $member['UnionMember']['name'] ?></td>
				<td><?php echo $member['Union']['union_name'] ?></td>			
			</tr>
			<?php } ?>
		</tbody>
	</table>
	<?php 
	echo $form->input('union_id', array('value'=>$union_id, 'div'=>'form-field clear', 'type'=>'hidden'));
	echo $form->input('last_date_of_union_fee', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Ngày đóng Đoàn phí gần nhất: '), 'div'=>'form-field clear','type'=>'text'));
	?>
	
	<div class="tab-footer clear">
	<div class="form-field clear">
		<input type="submit" name="confirm" class="button red fr" value="Đồng ý" />
		<p class="clean-padding"><strong>Cập nhật lại ngày đóng Đoàn phí cho tất cả Đoàn Viên trên?</strong></p> 
	</div><!-- /.form-field -->		

	</div>
	<?php echo $form->end(); ?>
 </div>